package com.gtc.zsk.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gtc.zsk.model.dto.question.QuestionQueryRequest;
import com.gtc.zsk.model.dto.questionApply.QuestionApplyPassRequest;
import com.gtc.zsk.model.dto.questionApply.QuestionApplyQueryRequest;
import com.gtc.zsk.model.entity.Question;
import com.gtc.zsk.model.entity.QuestionApply;

import javax.servlet.http.HttpServletRequest;


/**
* @author 16153
* @description 针对表【question_apply(题目)】的数据库操作Service
* @createDate 2025-01-09 16:30:55
*/
public interface QuestionApplyService extends IService<QuestionApply> {

    void validQuestionApply(QuestionApply questionApply, boolean add);

    QueryWrapper<QuestionApply> getQueryWrapper(QuestionApplyQueryRequest questionApplyQueryRequest);

    Page<QuestionApply> listQuestionApplyByPage(QuestionApplyQueryRequest questionApplyQueryRequest);

    Long executeQuestionApplyNotAddQuestionBank(QuestionApplyPassRequest questionApplyPassRequest);

    Long executeQuestionApplyAddQuestionBank(QuestionApplyPassRequest questionApplyPassRequest);

    void passQuestionApply(QuestionApplyPassRequest questionApplyPassRequest, HttpServletRequest request);
}
